package my.design.strategy;

/**
 * @author zp
 * @version 1.0
 * @description: 中级会员 打百分之10的折扣
 * @date 2022/11/1 18:54
 */
public class IntermediateMemberStrategy implements MemberStrategy{
    @Override
    public double calcPrice(double price, int n) {
        return (price * n) - price * n * 0.1;
    }
}


